package user;

import Book.BookList;
import operation.IOoperation;

/**
 * Created with IntelliJ IDEA.
 * Description:
 * User: zjc
 * Date: 2022-09-18
 * Time: 18:28
 */
public abstract class User {
    protected String name;//用户名
    protected IOoperation[] iOoperations;//此时没有初始化和分配大小   用于区别用户和管理员操作

    public User(String name) {
        this.name = name;
    }
    public abstract int menu();//抽象方法

    public void doOperation(int choice, BookList bookList){
        this.iOoperations[choice].work(bookList);

    }
}
